﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SmartAnnotation
{
    public partial class AnnotationInput : Form
    {
        public bool OKPressed { get; set; }
        public string title;
        public string description;

        public AnnotationInput()
        {
            InitializeComponent();
        }

        public AnnotationInput(string title, string description)
        {
            InitializeComponent();

            tbTitle.Text = title;
            tbDescription.Text = description;

            buttonCancel.Text = "Delete";
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            OKPressed = true;
            title = tbTitle.Text;
            description = tbDescription.Text;
            this.Visible = false;
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            OKPressed = false;
            this.Visible = false;
        }
    }
}
